from imports import *
class HUD(pygame.sprite.Sprite):
##    from imports import *
    def __init__(self, clock):
        pygame.sprite.Sprite.__init__(self)
        self.points = 10000
        self.fps = 0
        self.font = pygame.font.SysFont("None", 36, True, False)
        self.clock = clock
    def update(self):
        if self.points < 0:
            self.points = 0
        self.fps = self.clock.get_fps()
        self.text = "Score: " + str(self.points) + "     " + str(self.fps) + " fps"
        self.image = self.font.render(self.text, 1, (0, 0, 0))
        self.rect = self.image.get_rect()
    def reset(self):
        self.points = 10000
        self.fps = 0
